﻿using WeDonekRpc.Helper.Validate;

namespace Shop.RemoteModel.PageModule.Model
{
    public class PageModuleAdd
    {
        /// <summary>
        /// 模版ID
        /// </summary>
        [NumValidate("shop.page.template.id.error", 1)]
        public long TemplateId { get; set; }

        /// <summary>
        /// 模块ID
        /// </summary>
        [NumValidate("shop.page.module.id.error", 1)]
        public long ModuleId { get; set; }

        /// <summary>
        /// 模块Key
        /// </summary>
        [NullValidate("shop.page.module.key.null")]
        [LenValidate("shop.page.module.key.len", 1, 20)]
        public string ModuleKey { get; set; }
        /// <summary>
        /// 模块标题
        /// </summary>
        [NullValidate("shop.page.module.title.null")]
        [LenValidate("shop.page.module.title.len", 2, 50)]
        public string ModuleTitle { get; set; }

        /// <summary>
        /// 排序位
        /// </summary>
        [NumValidate("shop.page.module.sort.error", 1, 100)]
        public int Sort { get; set; }
    }
}
